package cn.juni.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Juni
 * @date 2021/2/24
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Traveller {
    private String id;
    private String name;
    private String sex;
    private String phoneNum;
    private Integer credentialsType;
    private String credentialsNum;
    private Integer travellerType;
    private String credentialsTypeStr;

    public String getCredentialsTypeStr(){
        if(credentialsType==0){
            credentialsTypeStr="身份证";
        }
        if(credentialsType==1){
            credentialsTypeStr="护照";
        }
        if(credentialsType==2){
            credentialsTypeStr="军官证";
        }
        return credentialsTypeStr;
    }
}
